import { createApp } from 'vue'
import App from './App.vue'
import {createPersistedState} from 'pinia-plugin-persistedstate'
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import router from '@/router'
import {createPinia} from "pinia";


const app =createApp(App)
const pinia = createPinia();
const persist = createPersistedState();//persist是pinia的持久化组件，避免页面刷新丢失token
pinia.use(persist)
app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
